<script>
export default {
  mounted() {
    // console.log("query:",this.$route.query.username)
    // console.log("params:",this.$route.params)
    console.log("$route:",this.$route)
    console.log("$router:",this.$router)
    console.log("$router:",this.$router.getRoutes())

  },
  //组件内守卫
  // beforeRouteEnter(to,from,next){
  //     if(to.meta.auth){
  //         next('/');
  //     }else{
  //         next();
  //     }
  // }
}
</script>

<template>
  <div>Bar.vue</div>
</template>

<style scoped>

</style>